import { ValueOf } from '@/utils/type';

export const ROLE_MENU = {
    SUPER_ADMIN: 'SuperAdmin',
    ADMIN: 'Admin',
    USER: 'User',
    GUEST: 'Guest',
} as const;

export type ROLE_KEY = ValueOf<typeof ROLE_MENU>;

export const ROLE_MENU_MAP = {
    [ROLE_MENU.SUPER_ADMIN]: {
        name: '超级管理员',
        value: 'SuperAdmin',
    },
    [ROLE_MENU.ADMIN]: {
        name: '管理员',
        value: 'Admin',
    },
    [ROLE_MENU.USER]: {
        name: '用户',
        value: 'User',
    },
    [ROLE_MENU.GUEST]: {
        name: '游客',
        value: 'Guest',
    },
};
